home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / kgdb / RCS / kgdb,v < prev    next >
Encoding:
Text File  |  1991-08-02  |  2.3 KB  |  110 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    jhh:1.2; strict;
  6. comment  @# @;
  7.  
  8.  
  9. 1.2
  10. date     90.11.15.17.50.22;  author rab;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     89.01.24.14.04.14;  author mendel;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @Shell script to invoke the correct kgdb based on a -m option.
  22. @
  23.  
  24.  
  25. 1.2
  26. log
  27. @Added symmetry.
  28. @
  29. text
  30. @#! /bin/csh -f
  31. #
  32. #   Script to invoke the correct kgdb based on the specified -m option. 
  33. #   All options other that -m are assumed to be kgdb options and are
  34. #   passed unmodified to kgdb. Since this script is intended to run on
  35. #   both unix and sprite, it uses unix style path names.
  36. #
  37. # $Header: /sprite/src/cmds/kgdb/RCS/kgdb,v 1.1 89/01/24 14:04:14 mendel Exp Locker: rab $SPRITE (Berkeley)
  38. #
  39. # Copyright 1989 Regents of the University of California
  40. # Permission to use, copy, modify, and distribute this
  41. # software and its documentation for any purpose and without
  42. # fee is hereby granted, provided that the above copyright
  43. # notice appear in all copies.  The University of California
  44. # makes no representations about the suitability of this
  45. # software for any purpose.  It is provided "as is" without
  46. # express or implied warranty.
  47. #
  48.  
  49. # Default to the machine type in the $MACHINE variable.
  50. #
  51. set tm = $MACHINE
  52.  
  53. #
  54. # Set the variable tm to the -m option specified.  This code assumes that if
  55. # if it exists then the -m must be the first argument. argv is shifted to 
  56. # remove the -m option.
  57.  
  58. if ($#argv > 0) then
  59.         switch ($argv[1])
  60. #
  61. # Currently, sun3 and sun2 shared the same kdbx with tm=sun3.
  62. #
  63.         case -msun2:
  64.         case -msun3:
  65.         set tm=sun3
  66.             shift argv
  67.         goto out
  68.     case -mspur:
  69.         set tm=spur
  70.             shift argv
  71.         goto out
  72.     case -msun4:
  73.         set tm=sun4
  74.             shift argv
  75.         goto out
  76.     case -msymm
  77.         set tm=symm
  78.             shift argv
  79.         goto out
  80.     case -mds3100
  81.         set tm=ds3100
  82.             shift argv
  83.         goto out
  84. # Added addition machine types here.  
  85.         case -m*:
  86.             echo "unknown machine" $argv[1]
  87.             exit(1)
  88.     default:
  89.     endsw
  90. endif
  91.  
  92. out:
  93. echo "Sprite" $tm "kernel debugger"
  94. exec kgdb.$tm $argv
  95. @
  96.  
  97.  
  98. 1.1
  99. log
  100. @Initial revision
  101. @
  102. text
  103. @d8 1
  104. a8 1
  105. # $Header: /sprite/lib/forms/RCS/proto.csh,v 1.2 89/01/16 11:13:37 ouster Exp $SPRITE (Berkeley)
  106. d46 8
  107. @
  108.